{% extends "base.html" %}

{% block class %}blog{% endblock %}

{% block main %}
<h3>Blog: {{ day|date:"F j, Y" }} Archive</h3>
<dl>
	{% load comments %}
	{% load markup %}
	{% for object in object_list %}
		{% get_free_comment_count for blog.post object.id as comment_count %}
		<dt><a id="{{ object.slug }}" href="{{ object.get_absolute_url }}">{{ object.title }}</a></dt>

		<dd>{{ object.body|truncatewords:80|markdown }}</dd>

		<dd>Posted on {{ object.create_date|date:"F j, Y" }}
			<a href="{{ object.get_absolute_url }}#comments" class='commentlink'>{{ comment_count }} Comment{{ comment_count|pluralize }}</a>
			Tags: 
			{% for tag in object.assoc_tags.all %}
				<a href="{{ tag.get_absolute_url }}">{{ tag.title }}</a>
				{% if not forloop.last %}, {% endif %}
			{% endfor %}			
		</dd>
	{% endfor %}
</dl>
{% endblock %}
